{{#if entity.indexSubDE}}
package {{packageName}}.core.{{entity.module}}.mapping;

import org.mapstruct.*;
import {{packageName}}.core.{{entity.module}}.domain.{{entity.domainClassName}};
import {{packageName}}.core.{{entity.indexRelation.module}}.domain.{{entity.indexRelation.relEntity.domainClassName}};
import java.util.List;

/**
 * {{entity.logicName}}继承映射[{{entity.codeName}}]
 *
 * @author generator
 */
@Mapper(componentModel = "spring", uses = {})
public interface {{entity.codeName}}InheritMapping {

    /**
     * 转换{{entity.indexRelation.relEntity.codeName}}
     * 
     * @param {{camelCase entity.codeName}}
     * @return
     */
    @Mappings({
            @Mapping(target ="focusNull",ignore = true),
        {{#each entity.indexRelation.lookup2 as |lookup|}}
            @Mapping(source ="{{camelCase lookup.codeName}}",target = "{{camelCase lookup.refCodeName}}"),
        {{/each}}
    })
    {{entity.indexRelation.relEntity.domainClassName}} to{{pascalCase entity.indexRelation.relEntity.codeName}}({{entity.domainClassName}} {{camelCase entity.codeName}});

    /**
     * 转换{{entity.indexRelation.relEntity.codeName}}
     * 
     * @param {{camelCase entity.indexRelation.relEntity.codeName}}
     * @return
     */
    @Mappings({
            @Mapping(target ="focusNull",ignore = true),
        {{#each entity.indexRelation.lookup1 as |lookup|}}
            @Mapping(source ="{{camelCase lookup.refCodeName}}",target = "{{camelCase lookup.codeName}}"),
        {{/each}}
    })
    {{entity.domainClassName}} to{{pascalCase entity.codeName}}({{entity.indexRelation.relEntity.domainClassName}} {{camelCase entity.indexRelation.relEntity.codeName}});

    /**
     * List {{entity.codeName}} 对象转换
     *
     * @param list
     * @return
     */
    List<{{entity.indexRelation.relEntity.domainClassName}}> to{{pascalCase entity.indexRelation.relEntity.codeName}}(List<{{entity.domainClassName}}> list);

    /**
     * List {{entity.indexRelation.relEntity.codeName}} 对象转换
     *
     * @param list
     * @return
     */
    List<{{entity.domainClassName}}> to{{pascalCase entity.codeName}}(List<{{entity.indexRelation.relEntity.domainClassName}}> list);

}
{{/if}}